Component({
    options: {
        addGlobalClass: !0
    },
    properties: {
        hot: {
            type: Array,
            value: function() {
                return [];
            }
        },
        cityArr: {
            type: Array,
            value: function() {
                return [];
            }
        },
        hostCities: {
            type: Array,
            value: function() {
                return [];
            }
        },
        cityName: {
            type: String,
            value: ""
        }
    },
    data: {
        letter: [],
        letterShow: !0,
        citiesList: []
    },
    lifetimes: {
        attached: function() {}
    },
    methods: {
        RelatedSites: function(t) {
            var e = t.currentTarget.dataset, r = e.city, i = e.citycode;
            wx.redirectTo({
                url: "/packageF/tourAround/travelIndex/travelIndex?city=".concat(r, "&cityCode=").concat(i, "&localCity=").concat(r)
            }), this.historyCity(r, i);
        },
        historyCity: function(t, e) {
            var r, i = wx.getStorageSync("historyList") || [];
            i.length > 0 && ((i = JSON.parse(i)).length >= 10 && i.pop());
            i.unshift({
                name: t,
                cityCode: e
            }), r = i.filter(function(t, e, r) {
                return r.findIndex(function(e) {
                    return e.name === t.name;
                }) === e;
            }), wx.setStorageSync("historyList", JSON.stringify(r));
        }
    }
});